<h4 class="sets">EDITING SET <%=h @fset.name %><span>Click on a card to edit it, or create a new card</span></h4>

<% form_for(@fset) do |f| %>
  <%= f.error_messages %>

<% end %>

<div id="create">

  <%= render :partial => 'flashcards/new_part', :locals=> { :fset => @fset, :new_flashcard => @new_flashcard } %>

</div>

<div id="flashcards_container">
<% for flashcard in @flashcards %>
	<div id="fc_<%=flashcard.id%>" onclick="<%= remote_function(:update => "fc_"+flashcard.id.to_s,
	      :url => { :controller => :flashcards, :action => :edit_ajax, :id=>flashcard.id }) %>">
	<%= render :partial => 'flashcards/show_part', :locals=> { :flashcard => flashcard } %> 
	<!--- 	<%= render :partial => 'flashcards/edit_part', :locals=> { :fset => @fset, :flashcard => flashcard } %> ---!>
	</div>
<% end %>
</div>

